import { ComponentProps, Hook, VueComponent } from "vue3-oop"
import { NCard } from 'naive-ui';

import styles from './CardDraft.module.scss'
import { FormData,WidgetNode,ReserveItem } from '../../../types'

import CardProps from "./CardProps";
import FlexDraft from "../flex/FlexDraft"

interface IProps {
  formData: FormData,
  widgetNode: WidgetNode
}
export default class CardDraft extends VueComponent<IProps> {
  static defaultProps: ComponentProps<IProps> = {
    formData: {},
    widgetNode: {}
  }

  constructor(
  ) {
    super();
  }

  render() {
    const { formData,widgetNode } = this.props;
    const widgetProps = widgetNode.widgetProps as CardProps;

    return (
      <NCard
        title={"hello"}
      >
        <FlexDraft
          formData={formData}
          widgetNode={widgetNode}
        />
      </NCard>
    )
  }
}

